package com.wyw.design.model.learning.behavioral.command;

/**
 * @Title   请求者
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/17 15:22
 * Update History:
 * Author        Time            Content
 */
public class Invoker {
    // 持有命令对象
    private Command command;
    public Invoker(Command command) {
        this.command = command;
    }
    // 请求方法
    public void action() {
        this.command.execute();
    }
}
